package me.wangqu.weiyouqu.web.rest.business.service;

import me.wangqu.weiyouqu.web.rest.business.dao.AboutDao;
import me.wangqu.weiyouqu.web.rest.business.model.BaseModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by joln on 2016/8/2.
 */
@Service
public class AboutService {
    private Logger logger = LoggerFactory.getLogger(AboutService.class);

    @Autowired
    private AboutDao aboutDao;

    public List<BaseModel> getAboutData() {
        try {
            return aboutDao.getAboutData();
        } catch (Exception e) {
            logger.error("获取关于数据失败", e.getMessage());
        }
        return null;
    }
}
